package com.yhsimon.state;

/**
 * @author： YHSimon
 * @date： 2021-10-23 13:06
 */
public class NoRaffleState extends State {
    RaffleActivity activity;
    public NoRaffleState(RaffleActivity activity){
        this.activity=activity;
    }
    @Override
    public void deductMoney() {
        System.out.println("扣除50积分成功，您可以抽奖了");
        activity.setState(activity.getCanRaffleState());
    }

    @Override
    public boolean raffle() {
        System.out.println("扣了积分才能抽奖呀");
        return false;
    }

    @Override
    public void dispensePrize() {
        System.out.println("不能发放奖品");
    }
}
